{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      {foreach name=channel_current from=$channel_current item=channel_current}
      &raquo; <a href="{$control_index}?act=channel&channel_id={$channel_current.id}" target="_self" class="current_place">{$channel_current.name|str_entag:'space,br'}</a>
      {/foreach}
      &raquo; <a href="{$control_index}?act=topic&topic_id={$topic_info.id}" target="_self" class="current_place">{$topic_info.subject|str_cut:0:30:"..."|str_entag:"space"}</a>
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

<div class="out_table">
{if $get.ope == "elite"}
<form id="form_elite" name="form_elite" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr class="block_header">
    <td colspan="2">确认对主题精华</td>
  </tr>
  </tr>
  <tr>
    <td width="20%" class="block_left">主题内容:</td>
    <td width="80%" class="block_right">
    <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="left" class="block_caption">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
          <tr>
            <td width="16" nowrap><img src="{$dir_images}/icon_time.gif" border="0" alt="发表时间作者:" title="发表时间作者" /></td>
            <td width="50%" align="left"><a href="index.php?act=topic&topic_id={$topic_info.id}&#pid_{$topic_info.id}" target="_blank">{$topic_info.post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a> 由 <a href="index.php?act=member_view&mid={$topic_info.post_mid}" target="_blank">{$topic_info.post_musername}</a> 发表,共有 {$total_post-1} 条回复:</td>
            <td width="50%" align="right">
              {if $topic_info.if_elite==1 || ($topic_info.if_elite==3 AND $topic_info.if_elite_begin < $smarty.now && $topic_info.if_elite_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_elite.gif" alt="精" title="精华帖" border="0" align="absmiddle" /> 本帖为精华帖
              {elseif $topic_info.if_top==1 || ($topic_info.if_top==3 AND $topic_info.if_top_begin < $smarty.now && $topic_info.if_top_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_top.gif" alt="顶" title="置顶帖" border="0" align="absmiddle" /> 本帖为置顶帖
              {elseif $topic_info.if_close==1 || ($topic_info.if_close==3 AND $topic_info.if_close_begin < $smarty.now && $topic_info.if_close_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_lock.gif" alt="锁" title="锁定帖" border="0" align="absmiddle" /> 本帖为锁定帖
              {elseif $topic_info.number_reply > $config.max_topic_hot}
              <img src="{$dir_images}/icon_topic_hot.gif" alt="热" title="热门帖" border="0" align="absmiddle" /> 本帖为热门帖
              {/if}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td align="left" class="topic_title">
        {if $topic_info.icon_filename != ""}<img src="images/icon_topic/{$topic_info.icon_filename}" alt="图" border="0" align="absmiddle" />{/if}
        {section name=trans_value loop=$trans_value}{if $trans_value[trans_value].trans_id != ""}[{$trans_value[trans_value].trans_name}]{/if}{/section}
        {$topic_info.subject|str_entag:"space"}
        </td>
      </tr>
      <tr>
        <td colspan="2" height="30" align="left" valign="top">
        <table cellpadding="0" cellspacing="0" border="0" class="topic_content">
          <tr>
            <td align="left" valign="top">
            {assign var="post_content" value=$topic_info.post_content|str_entag:"space,br"}
            {if $topic_info.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
            {$post_content}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      {if $topic_info.attach_list|@is_array && $topic_info.attach_list|@count > 0}
      <tr>
        <td height="30" align="left" bgcolor="#EEEEEE">
        <table width="100%" cellpadding="3" cellspacing="1" border="0">
          <tr align="left">
            <td colspan="2"><b>附件列表:</b></td>
          </tr>
          {foreach name=attach_list from=$topic_info.attach_list item=attach_list}
          <tr align="center" bgcolor="#DEDEDE">
            <td width="5%">
            {if $attach_list.filename|substr:-4|in_array:".gif,.jpg,.png"}
              <img src="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" width="20" height="20" border="0" align="absmiddle">
            {/if}
            </td>
            <td width="95%" align="left">
              <table width="100%" height="25" cellspacing="0" cellpadding="0" border="0" class="content_wrap"><tr><td align="left"><div id="brief_{$attach_list.id}" name="brief_{$attach_list.id}" class="smalltext"><a href="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" target="_blank">{$attach_list.brief}</a></div></td></tr></table>
            </td>
          </tr>
          {/foreach}
        </table>
        </td>
      </tr>
      {/if}
      <tr><td height="6" align="left"></td></tr>
    </table>
    </td>
  </tr>
  <tr>
    <td width="20%" class="block_left">精华日期限制:<br />(0为不限时间)</td>
    <td width="80%" class="block_right">
    开始时间:<input type="text" id="if_elite_begin" name="if_elite_begin" value="0" class="input" size="12" />
    结束时间:<input type="text" id="if_elite_end" name="if_elite_end" value="0" class="input" size="12" />
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="block_footer">
    <input type="button" id="button_submit" name="button_submit" value="主题精华" class="button"
        onclick="xajax.$('button_submit').disabled=true;
                 xajax.$('button_submit').value='请等待...';
                 xajax_topic_elite(xajax.getFormValues('form_elite'), 'button_submit');">
    </td>
  </tr>
</table>
</form>
{elseif $get.ope == "top"}
<form id="form_top" name="form_top" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr class="block_header">
    <td colspan="2">确认对主题置顶</td>
  </tr>
  </tr>
  <tr>
    <td width="20%" class="block_left">主题内容:</td>
    <td width="80%" class="block_right">
    <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="left" class="block_caption">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
          <tr>
            <td width="16" nowrap><img src="{$dir_images}/icon_time.gif" border="0" alt="发表时间作者:" title="发表时间作者" /></td>
            <td width="50%" align="left"><a href="index.php?act=topic&topic_id={$topic_info.id}&#pid_{$topic_info.id}" target="_blank">{$topic_info.post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a> 由 <a href="index.php?act=member_view&mid={$topic_info.post_mid}" target="_blank">{$topic_info.post_musername}</a> 发表,共有 {$total_post-1} 条回复:</td>
            <td width="50%" align="right">
              {if $topic_info.if_elite==1 || ($topic_info.if_elite==3 AND $topic_info.if_elite_begin < $smarty.now && $topic_info.if_elite_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_elite.gif" alt="精" title="精华帖" border="0" align="absmiddle" /> 本帖为精华帖
              {elseif $topic_info.if_top==1 || ($topic_info.if_top==3 AND $topic_info.if_top_begin < $smarty.now && $topic_info.if_top_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_top.gif" alt="顶" title="置顶帖" border="0" align="absmiddle" /> 本帖为置顶帖
              {elseif $topic_info.if_close==1 || ($topic_info.if_close==3 AND $topic_info.if_close_begin < $smarty.now && $topic_info.if_close_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_lock.gif" alt="锁" title="锁定帖" border="0" align="absmiddle" /> 本帖为锁定帖
              {elseif $topic_info.number_reply > $config.max_topic_hot}
              <img src="{$dir_images}/icon_topic_hot.gif" alt="热" title="热门帖" border="0" align="absmiddle" /> 本帖为热门帖
              {/if}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td align="left" class="topic_title">
        {if $topic_info.icon_filename != ""}<img src="images/icon_topic/{$topic_info.icon_filename}" alt="图" border="0" align="absmiddle" />{/if}
        {section name=trans_value loop=$trans_value}{if $trans_value[trans_value].trans_id != ""}[{$trans_value[trans_value].trans_name}]{/if}{/section}
        {$topic_info.subject|str_entag:"space"}
        </td>
      </tr>
      <tr>
        <td colspan="2" height="30" align="left" valign="top">
        <table cellpadding="0" cellspacing="0" border="0" class="topic_content">
          <tr>
            <td align="left" valign="top">
            {assign var="post_content" value=$topic_info.post_content|str_entag:"space,br"}
            {if $topic_info.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
            {$post_content}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      {if $topic_info.attach_list|@is_array && $topic_info.attach_list|@count > 0}
      <tr>
        <td height="30" align="left" bgcolor="#EEEEEE">
        <table width="100%" cellpadding="3" cellspacing="1" border="0">
          <tr align="left">
            <td colspan="2"><b>附件列表:</b></td>
          </tr>
          {foreach name=attach_list from=$topic_info.attach_list item=attach_list}
          <tr align="center" bgcolor="#DEDEDE">
            <td width="5%">
            {if $attach_list.filename|substr:-4|in_array:".gif,.jpg,.png"}
              <img src="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" width="20" height="20" border="0" align="absmiddle">
            {/if}
            </td>
            <td width="95%" align="left">
              <table width="100%" height="25" cellspacing="0" cellpadding="0" border="0" class="content_wrap"><tr><td align="left"><div id="brief_{$attach_list.id}" name="brief_{$attach_list.id}" class="smalltext"><a href="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" target="_blank">{$attach_list.brief}</a></div></td></tr></table>
            </td>
          </tr>
          {/foreach}
        </table>
        </td>
      </tr>
      {/if}
      <tr><td height="6" align="left"></td></tr>
    </table>
    </td>
  </tr>
  <tr>
    <td width="20%" class="block_left">置顶日期限制:<br />(0为不限时间)</td>
    <td width="80%" class="block_right">
    开始时间:<input type="text" id="if_top_begin" name="if_top_begin" value="0" class="input" size="12" />
    结束时间:<input type="text" id="if_top_end" name="if_top_end" value="0" class="input" size="12" />
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="block_footer">
    <input type="button" id="button_submit" name="button_submit" value="主题置顶" class="button"
        onclick="xajax.$('button_submit').disabled=true;
                 xajax.$('button_submit').value='请等待...';
                 xajax_topic_top(xajax.getFormValues('form_top'), 'button_submit');">
    </td>
  </tr>
</table>
</form>
{elseif $get.ope == "close"}
<form id="form_close" name="form_close" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr class="block_header">
    <td colspan="2">确认对主题锁定</td>
  </tr>
  </tr>
  <tr>
    <td width="20%" class="block_left">主题内容:</td>
    <td width="80%" class="block_right">
    <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="left" class="block_caption">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
          <tr>
            <td width="16" nowrap><img src="{$dir_images}/icon_time.gif" border="0" alt="发表时间作者:" title="发表时间作者" /></td>
            <td width="50%" align="left"><a href="index.php?act=topic&topic_id={$topic_info.id}&#pid_{$topic_info.id}" target="_blank">{$topic_info.post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a> 由 <a href="index.php?act=member_view&mid={$topic_info.post_mid}" target="_blank">{$topic_info.post_musername}</a> 发表,共有 {$total_post-1} 条回复:</td>
            <td width="50%" align="right">
              {if $topic_info.if_elite==1 || ($topic_info.if_elite==3 AND $topic_info.if_elite_begin < $smarty.now && $topic_info.if_elite_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_elite.gif" alt="精" title="精华帖" border="0" align="absmiddle" /> 本帖为精华帖
              {elseif $topic_info.if_top==1 || ($topic_info.if_top==3 AND $topic_info.if_top_begin < $smarty.now && $topic_info.if_top_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_top.gif" alt="顶" title="置顶帖" border="0" align="absmiddle" /> 本帖为置顶帖
              {elseif $topic_info.if_close==1 || ($topic_info.if_close==3 AND $topic_info.if_close_begin < $smarty.now && $topic_info.if_close_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_lock.gif" alt="锁" title="锁定帖" border="0" align="absmiddle" /> 本帖为锁定帖
              {elseif $topic_info.number_reply > $config.max_topic_hot}
              <img src="{$dir_images}/icon_topic_hot.gif" alt="热" title="热门帖" border="0" align="absmiddle" /> 本帖为热门帖
              {/if}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td align="left" class="topic_title">
        {if $topic_info.icon_filename != ""}<img src="images/icon_topic/{$topic_info.icon_filename}" alt="图" border="0" align="absmiddle" />{/if}
        {section name=trans_value loop=$trans_value}{if $trans_value[trans_value].trans_id != ""}[{$trans_value[trans_value].trans_name}]{/if}{/section}
        {$topic_info.subject|str_entag:"space"}
        </td>
      </tr>
      <tr>
        <td colspan="2" height="30" align="left" valign="top">
        <table cellpadding="0" cellspacing="0" border="0" class="topic_content">
          <tr>
            <td align="left" valign="top">
            {assign var="post_content" value=$topic_info.post_content|str_entag:"space,br"}
            {if $topic_info.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
            {$post_content}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      {if $topic_info.attach_list|@is_array && $topic_info.attach_list|@count > 0}
      <tr>
        <td height="30" align="left" bgcolor="#EEEEEE">
        <table width="100%" cellpadding="3" cellspacing="1" border="0">
          <tr align="left">
            <td colspan="2"><b>附件列表:</b></td>
          </tr>
          {foreach name=attach_list from=$topic_info.attach_list item=attach_list}
          <tr align="center" bgcolor="#DEDEDE">
            <td width="5%">
            {if $attach_list.filename|substr:-4|in_array:".gif,.jpg,.png"}
              <img src="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" width="20" height="20" border="0" align="absmiddle">
            {/if}
            </td>
            <td width="95%" align="left">
              <table width="100%" height="25" cellspacing="0" cellpadding="0" border="0" class="content_wrap"><tr><td align="left"><div id="brief_{$attach_list.id}" name="brief_{$attach_list.id}" class="smalltext"><a href="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" target="_blank">{$attach_list.brief}</a></div></td></tr></table>
            </td>
          </tr>
          {/foreach}
        </table>
        </td>
      </tr>
      {/if}
      <tr><td height="6" align="left"></td></tr>
    </table>
    </td>
  </tr>
  <tr>
    <td width="20%" class="block_left">锁定日期限制:<br />(0为不限时间)</td>
    <td width="80%" class="block_right">
    开始时间:<input type="text" id="if_close_begin" name="if_close_begin" value="0" class="input" size="12" />
    结束时间:<input type="text" id="if_close_end" name="if_close_end" value="0" class="input" size="12" />
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="block_footer">
    <input type="button" id="button_submit" name="button_submit" value="主题锁定" class="button"
        onclick="xajax.$('button_submit').disabled=true;
                 xajax.$('button_submit').value='请等待...';
                 xajax_topic_close(xajax.getFormValues('form_close'), 'button_submit');">
    </td>
  </tr>
</table>
</form>
{elseif $get.ope == "move"}
<form id="form_move" name="form_move" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">确认对主题移动</td>
  </tr>
  </tr>
  <tr>
    <td width="20%" class="block_left">主题内容:</td>
    <td width="80%" class="block_right">
    <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="left" class="block_caption">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
          <tr>
            <td width="16" nowrap><img src="{$dir_images}/icon_time.gif" border="0" alt="发表时间作者:" title="发表时间作者" /></td>
            <td width="50%" align="left"><a href="index.php?act=topic&topic_id={$topic_info.id}&#pid_{$topic_info.id}" target="_blank">{$topic_info.post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a> 由 <a href="index.php?act=member_view&mid={$topic_info.post_mid}" target="_blank">{$topic_info.post_musername}</a> 发表,共有 {$total_post-1} 条回复:</td>
            <td width="50%" align="right">
              {if $topic_info.if_elite==1 || ($topic_info.if_elite==3 AND $topic_info.if_elite_begin < $smarty.now && $topic_info.if_elite_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_elite.gif" alt="精" title="精华帖" border="0" align="absmiddle" /> 本帖为精华帖
              {elseif $topic_info.if_top==1 || ($topic_info.if_top==3 AND $topic_info.if_top_begin < $smarty.now && $topic_info.if_top_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_top.gif" alt="顶" title="置顶帖" border="0" align="absmiddle" /> 本帖为置顶帖
              {elseif $topic_info.if_close==1 || ($topic_info.if_close==3 AND $topic_info.if_close_begin < $smarty.now && $topic_info.if_close_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_lock.gif" alt="锁" title="锁定帖" border="0" align="absmiddle" /> 本帖为锁定帖
              {elseif $topic_info.number_reply > $config.max_topic_hot}
              <img src="{$dir_images}/icon_topic_hot.gif" alt="热" title="热门帖" border="0" align="absmiddle" /> 本帖为热门帖
              {/if}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td align="left" class="topic_title">
        {if $topic_info.icon_filename != ""}<img src="images/icon_topic/{$topic_info.icon_filename}" alt="图" border="0" align="absmiddle" />{/if}
        {section name=trans_value loop=$trans_value}{if $trans_value[trans_value].trans_id != ""}[{$trans_value[trans_value].trans_name}]{/if}{/section}
        {$topic_info.subject|str_entag:"space"}
        </td>
      </tr>
      <tr>
        <td colspan="2" height="30" align="left" valign="top">
        <table cellpadding="0" cellspacing="0" border="0" class="topic_content">
          <tr>
            <td align="left" valign="top">
            {assign var="post_content" value=$topic_info.post_content|str_entag:"space,br"}
            {if $topic_info.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
            {$post_content}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      {if $topic_info.attach_list|@is_array && $topic_info.attach_list|@count > 0}
      <tr>
        <td height="30" align="left" bgcolor="#EEEEEE">
        <table width="100%" cellpadding="3" cellspacing="1" border="0">
          <tr align="left">
            <td colspan="2"><b>附件列表:</b></td>
          </tr>
          {foreach name=attach_list from=$topic_info.attach_list item=attach_list}
          <tr align="center" bgcolor="#DEDEDE">
            <td width="5%">
            {if $attach_list.filename|substr:-4|in_array:".gif,.jpg,.png"}
              <img src="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" width="20" height="20" border="0" align="absmiddle">
            {/if}
            </td>
            <td width="95%" align="left">
              <table width="100%" height="25" cellspacing="0" cellpadding="0" border="0" class="content_wrap"><tr><td align="left"><div id="brief_{$attach_list.id}" name="brief_{$attach_list.id}" class="smalltext"><a href="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" target="_blank">{$attach_list.brief}</a></div></td></tr></table>
            </td>
          </tr>
          {/foreach}
        </table>
        </td>
      </tr>
      {/if}
      <tr><td height="6" align="left"></td></tr>
    </table>
    </td>
  </tr>
  <tr>
    <td width="20%" class="block_left">移动到:</td>
    <td width="80%" class="block_right">
    <select id="channel_tree_to" name="channel_tree_to" class="select">
      <option value="0">= 板块列表 =</option>
      {foreach name=channel_tree from=$channel_tree item=channel_tree}
        {if $channel_tree.id == $topic_info.channel_id}
        <optgroup label="{$channel_tree.name|indent:$channel_tree.depth:'&nbsp;&nbsp;&nbsp;&nbsp;'}"></optgroup>
        {else}
        <option value="{$channel_tree.id}">{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}</option>
        {/if}
      {/foreach}
    </select>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="block_footer">
    <input type="button" id="button_submit" name="button_submit" value="主题移动" class="button"
        onclick="xajax.$('button_submit').disabled=true;
                 xajax.$('button_submit').value='请等待...';
                 xajax_topic_move(xajax.getFormValues('form_move'), 'button_submit');">
    </td>
  </tr>
</table>
</form>
{elseif $get.ope == "del"}
<form id="form_del" name="form_del" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">确认对主题删除</td>
  </tr>
  </tr>
  <tr>
    <td width="20%" class="block_left">主题内容:</td>
    <td width="80%" class="block_right">
    <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center">
      <tr>
        <td align="left" class="block_caption">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
          <tr>
            <td width="16" nowrap><img src="{$dir_images}/icon_time.gif" border="0" alt="发表时间作者:" title="发表时间作者" /></td>
            <td width="50%" align="left"><a href="index.php?act=topic&topic_id={$topic_info.id}&#pid_{$topic_info.id}" target="_blank">{$topic_info.post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a> 由 <a href="index.php?act=member_view&mid={$topic_info.post_mid}" target="_blank">{$topic_info.post_musername}</a> 发表,共有 {$total_post-1} 条回复:</td>
            <td width="50%" align="right">
              {if $topic_info.if_elite==1 || ($topic_info.if_elite==3 AND $topic_info.if_elite_begin < $smarty.now && $topic_info.if_elite_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_elite.gif" alt="精" title="精华帖" border="0" align="absmiddle" /> 本帖为精华帖
              {elseif $topic_info.if_top==1 || ($topic_info.if_top==3 AND $topic_info.if_top_begin < $smarty.now && $topic_info.if_top_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_top.gif" alt="顶" title="置顶帖" border="0" align="absmiddle" /> 本帖为置顶帖
              {elseif $topic_info.if_close==1 || ($topic_info.if_close==3 AND $topic_info.if_close_begin < $smarty.now && $topic_info.if_close_end > $smarty.now)}
              <img src="{$dir_images}/icon_topic_lock.gif" alt="锁" title="锁定帖" border="0" align="absmiddle" /> 本帖为锁定帖
              {elseif $topic_info.number_reply > $config.max_topic_hot}
              <img src="{$dir_images}/icon_topic_hot.gif" alt="热" title="热门帖" border="0" align="absmiddle" /> 本帖为热门帖
              {/if}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td align="left" class="topic_title">
        {if $topic_info.icon_filename != ""}<img src="images/icon_topic/{$topic_info.icon_filename}" alt="图" border="0" align="absmiddle" />{/if}
        {section name=trans_value loop=$trans_value}{if $trans_value[trans_value].trans_id != ""}[{$trans_value[trans_value].trans_name}]{/if}{/section}
        {$topic_info.subject|str_entag:"space"}
        </td>
      </tr>
      <tr>
        <td colspan="2" height="30" align="left" valign="top">
        <table cellpadding="0" cellspacing="0" border="0" class="topic_content">
          <tr>
            <td align="left" valign="top">
            {assign var="post_content" value=$topic_info.post_content|str_entag:"space,br"}
            {if $topic_info.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
            {$post_content}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      {if $topic_info.attach_list|@is_array && $topic_info.attach_list|@count > 0}
      <tr>
        <td height="30" align="left" bgcolor="#EEEEEE">
        <table width="100%" cellpadding="3" cellspacing="1" border="0">
          <tr align="left">
            <td colspan="2"><b>附件列表:</b></td>
          </tr>
          {foreach name=attach_list from=$topic_info.attach_list item=attach_list}
          <tr align="center" bgcolor="#DEDEDE">
            <td width="5%">
            {if $attach_list.filename|substr:-4|in_array:".gif,.jpg,.png"}
              <img src="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" width="20" height="20" border="0" align="absmiddle">
            {/if}
            </td>
            <td width="95%" align="left">
              <table width="100%" height="25" cellspacing="0" cellpadding="0" border="0" class="content_wrap"><tr><td align="left"><div id="brief_{$attach_list.id}" name="brief_{$attach_list.id}" class="smalltext"><a href="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" target="_blank">{$attach_list.brief}</a></div></td></tr></table>
            </td>
          </tr>
          {/foreach}
        </table>
        </td>
      </tr>
      {/if}
      <tr><td height="6" align="left"></td></tr>
    </table>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="block_footer">
    <input type="button" id="button_submit" name="button_submit" value="主题删除" class="button"
        onclick="xajax.$('button_submit').disabled=true;
                 xajax.$('button_submit').value='请等待...';
                 xajax_topic_del(xajax.getFormValues('form_del'), 'button_submit');">
    </td>
  </tr>
</table>
</form>
{else}
<table width="98%" cellpadding="0" cellspacing="0" border="0" align="center">
  <tr>
    <td align="right">
      <input type="button" value="收藏本帖" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_favorite.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=cp_favorite&ope=topic_add&topic_id={$topic_info.id}'">
    </td>
  </tr>
</table>
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
  <tr>
    <td align="left">
    {if $pagination.page_total > 1}
      <span class="pagination_post_list">
        <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
        <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
        {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
        {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
        {foreach name=page_list from=$pagination.page_list item=page_list}
          {if $page_list.if_current == "1"}
            <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
          {else}
            <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
          {/if}
        {/foreach}
        {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
        {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
        <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
        {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
        {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
        {foreach name=page_select from=$pagination.page_select item=page_select}
          {if $page_select.if_current == "1"}
            <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
          {else}
            <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
          {/if}
        {/foreach}
        {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
        {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
        </select>
      </span>
    {/if}
    </td>
    <td align="right">
      {if $channel_info.if_lock != "1" || ($admin.ag_privilege.channel_lockpost == "1" || ($admin.ag_privilege.channel_lockpost == "3" && $channel_top.channel_manage_admin_id != "")) }
      <a href="index.php?act=post&channel_id={$topic_info.channel_id}" target="_self"><img src="{$dir_images}/post_topic.gif" border="0"></a>
      {/if}
      {if $topic_info.if_close!=1 && ($topic_info.if_close!=3 || $topic_info.if_close_begin > $smarty.now || $topic_info.if_close_end < $smarty.now)}<a href="index.php?act=reply&topic_id={$topic_info.id}" target="_self"><img src="{$dir_images}/post_reply.gif" border="0"></a>{/if}
    </td>
  </tr>
</table>
{if $pagination.page_current <= 1}
<a id="pid_{$topic_info.post_id}" name="pid_{$topic_info.post_id}"></a>
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">
    {section name=trans_value loop=$trans_value}{if $trans_value[trans_value].trans_id != ""}[{$trans_value[trans_value].trans_name}]{/if}{/section}
    {$topic_info.subject|str_entag:"space"}
    </td>
  </tr>
  <tr class="block_caption">
    <td width="20%" align="center"><a href="index.php?act=member_view&mid={$topic_info.post_post_mid}" target="_self">{$topic_info.post_post_musername}</a></td>
    <td width="80%">
      <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
        <tr>
          <td width="16" nowrap><img src="{$dir_images}/icon_time.gif" border="0" alt="发表时间:" title="发表时间" /></td>
          <td width="50%" align="left">{$topic_info.post_post_time|date_format:'%Y-%m-%d %H:%M:%S'}</td>
          <td width="50%" align="right"><a href="index.php?act=topic&topic_id={$topic_info.id}&#pid_{$topic_info.post_id}" target="_self">{$topic_info.post_floor}楼</a></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="20%" valign="top" class="block_left">
      <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
        <tr>
          <td align="center" height="100">
          {if $topic_info.mg_privilege.if_forbidavatar == "1"}
          <table width="100%" cellpadding="3" cellspacing="0" border="0" >
            <tr>
              <td height="30" align="center" class="block_salient">头像被屏蔽...</td>
            </tr>
          </table>
          {elseif $topic_info.md_avatar_type == "1"}
            <div class="member_avatar" style="width:96px;height:96px;"><img src="{$dir_avatar_select}/{$topic_info.md_avatar_value}" width="96" height="96" border="0" /></div>
          {elseif $topic_info.md_avatar_type == "2"}
            <div class="member_avatar" style="width:96px;height:96px;"><img src="{$topic_info.md_avatar_value}" width="96" height="96" border="0" /></div>
          {elseif $topic_info.md_avatar_type == "3"}
            <div class="member_avatar" style="width:96px;height:96px;"><img src="{$dir_member_attach}/{$topic_info.md_avatar_value}" width="96" height="96" border="0" /></div>
          {else}
              &nbsp;
          {/if}
          </td>
        </tr>
        <tr>
          <td align="left"><b>{$topic_info.mg_name}</b></td>
        </tr>
        <tr>
          <td align="left">ID:{$topic_info.m_id}</td>
        </tr>
        <tr>
          <td align="left">发帖:{$topic_info.md_total_topic+$topic_info.md_total_reply}</td>
        </tr>
        <tr>
          <td align="left">精华:{$topic_info.md_total_elite}</td>
        </tr>
        <tr>
          <td align="left">积分:{$topic_info.m_point}</td>
        </tr>
        <tr>
          <td align="left">状态:{if ($smarty.now-$topic_info.m_time_lastvisit) < $config.time_online}在线{else}离线{/if}</td>
        </tr>
        <tr>
          <td align="left">在线:{$topic_info.m_cumulant_online/3600|@floor}小时</td>
        </tr>
        <tr>
          <td align="left">注册:{$topic_info.m_time_created|date_format:'%Y-%m-%d'}</td>
        </tr>
        <tr>
          <td align="left">最后:{$topic_info.m_time_lastvisit|date_format:'%Y-%m-%d'}</td>
        </tr>
        <tr>
          <td align="left">
            <a href="index.php?act=member_view&mid={$topic_info.post_post_mid}" target="_self"><img src="{$dir_images}/icon_identity.gif" border="0" alt="查看信息" title="查看信息" /></a>
            <a href="index.php?act=cp_pm_send&ope=send&mid={$topic_info.post_post_mid}" target="_self"><img src="{$dir_images}/icon_pm.gif" border="0" alt="发送短信" title="发送短信" /></a>
            {if $admin.ag_privilege.viewip_post == "1" && ($topic_info.mg_ag_id == "0" || ($topic_info.mg_ag_id > "0" && $admin.ag_privilege.admin_manage == "1"))}
              <img src="{$dir_images}/icon_magnifier.gif" border="0" alt="查看IP" title="查看IP" style="cursor: pointer;" onclick="xajax_show_ip('member_output_{$topic_info.post_id}','{$topic_info.post_id}');" />
            {/if}
          </td>
        </tr>
        <tr>
          <td height="20" align="center">
            <span id="member_output_{$topic_info.post_id}" name="member_output_{$topic_info.post_id}">
          </td>
        </tr>
      </table>
    </td>
    <td width="80%" valign="top" class="block_right">
    <table width="100%" cellpadding="3" cellspacing="0" border="0">
      {if $topic_info.mg_privilege.if_forbidopus == "1"}
      <tr>
        <td height="75">&nbsp;</td>
      </tr>
      <tr>
        <td height="30" align="center" class="block_salient">本帖会员所有发帖已经被系统屏蔽...</td>
      </tr>
      <tr>
        <td height="75">&nbsp;</td>
      </tr>
      {else}
      <tr>
        <td align="left" class="topic_title">
        {if $topic_info.icon_filename != ""}<img src="images/icon_topic/{$topic_info.icon_filename}" alt="图" border="0" align="absmiddle" />{/if}
        {section name=trans_value loop=$trans_value}{if $trans_value[trans_value].trans_id != ""}[{$trans_value[trans_value].trans_name}]{/if}{/section}
        {$topic_info.subject|str_entag:"space"}
        </td>
      </tr>
      <tr>
        <td height="180" align="left" valign="top">
        <table cellpadding="3" cellspacing="0" border="0" style="width:100%" class="topic_content">
          {if $topic_info.post_quote_list|@is_array && $topic_info.post_quote_list|@count > 0}
          <tr>
            <td align="left">
            {foreach name=post_quote_list from=$topic_info.post_quote_list item=post_quote_list}
            <div class="topic_quote">
            {/foreach}
            {foreach name=post_quote_list from=$topic_info.post_quote_list item=post_quote_list}
              <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr class="topic_quote_title">
                  <td align="left">
                  <a href="index.php?act=member_view&mid={$post_quote_list.post_mid}" target="_blank">{$post_quote_list.post_musername}</a> 于
                  <a href="index.php?act=topic&topic_id={$post_quote_list.topic_id}&post_id={$post_quote_list.id}&#pid_{$post_quote_list.id}" target="_blank">{$post_quote_list.post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a>
                  发表的原帖:
                  </td>
                  <td align="right">
                  {$smarty.foreach.post_quote_list.iteration}
                  </td>
                </tr>
                <tr class="topic_quote">
                  <td align="left">
                  {assign var="post_content" value=$post_quote_list.content|str_entag:"space,br"}
                  {if $post_quote_list.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
                  {$post_content}
                  </td>
                </tr>
                {if $post_quote_list.modify_mid != "0"}
                <tr class="topic_quote">
                  <td align="right">
                  本帖由 {$post_quote_list.modify_musername} 在 {$post_quote_list.modify_time|date_format:'%Y-%m-%d %H:%M:%S'} 编辑 ...
                  </td>
                </tr>
                {/if}
              </table>
            </div>
            {/foreach}
            </td>
          </tr>
          {/if}
          <tr>
            <td align="left" valign="top">
            {assign var="post_content" value=$topic_info.post_content|str_entag:"space,br"}
            {if $topic_info.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
            {$post_content}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      {if $topic_info.attach_list|@is_array && $topic_info.attach_list|@count > 0}
      <tr>
        <td height="30" align="left" bgcolor="#EEEEEE">
        <table width="100%" cellpadding="3" cellspacing="1" border="0">
          <tr align="left">
            <td colspan="2"><b>附件列表:</b></td>
          </tr>
          {foreach name=attach_list from=$topic_info.attach_list item=attach_list}
          <tr align="center" bgcolor="#DEDEDE">
            <td width="5%">
            {if $attach_list.filename|substr:-4|in_array:".gif,.jpg,.png"}
              <img src="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" width="20" height="20" border="0" align="absmiddle">
            {/if}
            </td>
            <td width="95%" align="left">
              <table width="100%" height="25" cellspacing="0" cellpadding="0" border="0" class="content_wrap"><tr><td align="left"><div id="brief_{$attach_list.id}" name="brief_{$attach_list.id}" class="smalltext"><a href="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" target="_blank">{$attach_list.brief}</a></div></td></tr></table>
            </td>
          </tr>
          {/foreach}
        </table>
        </td>
      </tr>
      {/if}
      <tr><td height="6" align="left"></td></tr>
      {if $topic_info.post_modify_mid != "0"}
      <tr>
        <td height="30" align="right" bgcolor="#ECF2FB">本帖由 {$topic_info.post_modify_musername} 在 {$topic_info.post_modify_time|date_format:'%Y-%m-%d %H:%M:%S'} 编辑 ...</td>
      </tr>
      {/if}
      {/if}
      {if $topic_info.mg_privilege.if_forbidsign == "1"}
      <tr>
        <td height="30" align="center" class="block_salient">签名被屏蔽...</td>
      </tr>
      {elseif $topic_info.md_sign != ""}
      <tr>
        <td align="left"><img src="{$dir_images}/sign.gif" alt="/_________________________________________________________" title="会员签名" border="0" align="absmiddle" /></td>
      </tr>
      <tr>
        <td align="left">
          <div style="width:100%;height:{$config.max_member_sign_height}px;" class="member_sign"><table cellpadding="0" cellspacing="0" border="0" style="width:100%" class="member_sign"><tr><td>{$topic_info.md_sign|str_entag:"space,br"|parse_bwbbcode}</td></tr></table></div>
        </td>
      </tr>
      {/if}
    </table>
    </td>
  </tr>
  <tr class="block_footer">
    <td width="20%" align="center">&nbsp;</td>
    <td width="80%">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
      <tr>
        <td align="left">
          {if ( ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "") )
              || ( ($topic_info.post_post_mid == $member.id) && ($member.mg_privilege.if_forbidpost != "1") )}
            {if $member.mg_privilege.if_editpost == "1"}
            <input type="button" value="编辑" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_edit.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=edit&ope=edit&topic_id={$topic_id}&post_id={$topic_info.post_id}'">
            {/if}
            {if $member.mg_privilege.if_delpost == "1"}
            <input type="button" value="删除" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_delete.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=edit&ope=del&topic_id={$topic_id}&post_id={$topic_info.post_id}'">
            {/if}
          {/if}
        </td>
        <td align="right">
          <input type="button" value="引用" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_quote.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=reply&ope=quote&topic_id={$topic_id}&post_id={$topic_info.post_id}'">
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
{/if}

{foreach name=post_list from=$post_list item=post_list}
{if $post_list.post_id != $topic_info.post_pid}
<a id="pid_{$post_list.post_id}" name="pid_{$post_list.post_id}"></a>
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr class="block_caption">
    <td width="20%" align="center"><a href="index.php?act=member_view&mid={$post_list.post_post_mid}" target="_self">{$post_list.post_post_musername}</a></td>
    <td width="80%">
      <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
        <tr>
          <td width="16" nowrap><img src="{$dir_images}/icon_time.gif" border="0" alt="发表时间:" title="发表时间" /></td>
          <td width="50%" align="left">{$post_list.post_post_time|date_format:'%Y-%m-%d %H:%M:%S'}</td>
          <td width="50%" align="right"><a href="index.php?act=topic&topic_id={$post_list.post_topic_id}&post_id={$post_list.post_id}&#pid_{$post_list.post_id}" target="_self">{$post_list.post_floor}楼</a></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="20%" valign="top" class="block_left">
      <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
        <tr>
          <td align="center" height="100">
          {if $post_list.mg_privilege.if_forbidavatar == "1"}
          <table width="100%" cellpadding="3" cellspacing="0" border="0" >
            <tr>
              <td height="30" align="center" class="block_salient">头像被屏蔽...</td>
            </tr>
          </table>
          {elseif $post_list.md_avatar_type == "1"}
            <div class="member_avatar" style="width:96px;height:96px;"><img src="{$dir_avatar_select}/{$post_list.md_avatar_value}" width="96" height="96" border="0" /></div>
          {elseif $post_list.md_avatar_type == "2"}
            <div class="member_avatar" style="width:96px;height:96px;"><img src="{$post_list.md_avatar_value}" width="96" height="96" border="0" /></div>
          {elseif $post_list.md_avatar_type == "3"}
            <div class="member_avatar" style="width:96px;height:96px;"><img src="{$dir_member_attach}/{$post_list.md_avatar_value}" width="96" height="96" border="0" /></div>
          {else}
              &nbsp;
          {/if}
          </td>
        </tr>
        <tr>
          <td align="left"><b>{$post_list.mg_name}</b></td>
        </tr>
        <tr>
          <td align="left">ID:{$post_list.m_id}</td>
        </tr>
        <tr>
          <td align="left">发帖:{$post_list.md_total_topic+$post_list.md_total_reply}</td>
        </tr>
        <tr>
          <td align="left">精华:{$post_list.md_total_elite}</td>
        </tr>
        <tr>
          <td align="left">积分:{$post_list.m_point}</td>
        </tr>
        <tr>
          <td align="left">状态:{if ($smarty.now-$post_list.m_time_lastvisit) < $config.time_online}在线{else}离线{/if}</td>
        </tr>
        <tr>
          <td align="left">在线:{$post_list.m_cumulant_online/3600|@floor}小时</td>
        </tr>
        <tr>
          <td align="left">注册:{$post_list.m_time_created|date_format:'%Y-%m-%d'}</td>
        </tr>
        <tr>
          <td align="left">最后:{$post_list.m_time_lastvisit|date_format:'%Y-%m-%d'}</td>
        </tr>
        <tr>
          <td align="left">
            <a href="index.php?act=member_view&mid={$post_list.post_post_mid}" target="_self"><img src="{$dir_images}/icon_identity.gif" border="0" alt="查看信息" title="查看信息" /></a>
            <a href="index.php?act=cp_pm_send&ope=send&mid={$post_list.post_post_mid}" target="_self"><img src="{$dir_images}/icon_pm.gif" border="0" alt="发送短信" title="发送短信" /></a>
            {if $admin.ag_privilege.viewip_post == "1" && ($post_list.mg_ag_id == "0" || ($post_list.mg_ag_id > "0" && $admin.ag_privilege.admin_manage == "1"))}
              <img src="{$dir_images}/icon_magnifier.gif" border="0" alt="查看IP" title="查看IP" style="cursor: pointer;" onclick="xajax_show_ip('member_output_{$post_list.post_id}','{$post_list.post_id}');" />
            {/if}
          </td>
        </tr>
        <tr>
          <td height="20" align="center">
            <span id="member_output_{$post_list.post_id}" name="member_output_{$post_list.post_id}">
          </td>
        </tr>
      </table>
    </td>
    <td width="80%" valign="top" class="block_right">
    <table width="100%" cellpadding="3" cellspacing="0" border="0">
      {if $post_list.mg_privilege.if_forbidopus == "1"}
      <tr>
        <td height="75">&nbsp;</td>
      </tr>
      <tr>
        <td height="30" align="center" class="block_salient">本帖会员所有发帖已经被系统屏蔽...</td>
      </tr>
      <tr>
        <td height="75">&nbsp;</td>
      </tr>
      {else}
      <tr>
        <td height="180" align="left" valign="top">
        <table cellpadding="3" cellspacing="0" border="0" style="width:100%" class="topic_content">
          {if $post_list.post_quote_list|@is_array && $post_list.post_quote_list|@count > 0}
          <tr>
            <td align="left">
            {foreach name=post_quote_list from=$post_list.post_quote_list item=post_quote_list}
            <div class="topic_quote">
            {/foreach}
            {foreach name=post_quote_list from=$post_list.post_quote_list item=post_quote_list}
              <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr class="topic_quote_title">
                  <td align="left">
                  <a href="index.php?act=member_view&mid={$post_quote_list.post_mid}" target="_blank">{$post_quote_list.post_musername}</a> 于
                  <a href="index.php?act=topic&topic_id={$post_quote_list.topic_id}&post_id={$post_quote_list.id}&#pid_{$post_quote_list.id}" target="_blank">{$post_quote_list.post_time|date_format:'%Y-%m-%d %H:%M:%S'}</a>
                  发表的原帖:
                  </td>
                  <td align="right">
                  {$smarty.foreach.post_quote_list.iteration}
                  </td>
                </tr>
                <tr class="topic_quote">
                  <td align="left">
                  {assign var="post_content" value=$post_quote_list.content|str_entag:"space,br"}
                  {if $post_quote_list.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
                  {$post_content}
                  </td>
                </tr>
                {if $post_quote_list.modify_mid != "0"}
                <tr class="topic_quote">
                  <td align="right">
                  本帖由 {$post_quote_list.modify_musername} 在 {$post_quote_list.modify_time|date_format:'%Y-%m-%d %H:%M:%S'} 编辑 ...
                  </td>
                </tr>
                {/if}
              </table>
            </div>
            {/foreach}
            </td>
          </tr>
          {/if}
          <tr>
            <td align="left" valign="top">
            {assign var="post_content" value=$post_list.post_content|str_entag:"space,br"}
            {if $post_list.post_if_bbcode == "1"}{assign var="post_content" value=$post_content|parse_bwbbcode}{/if}
            {$post_content}
            </td>
          </tr>
        </table>
        </td>
      </tr>
      {if $post_list.attach_list|@is_array && $post_list.attach_list|@count > 0}
      <tr>
        <td height="30" align="left" bgcolor="#EEEEEE">
        <table width="100%" cellpadding="3" cellspacing="1" border="0">
          <tr align="left">
            <td colspan="2"><b>附件列表:</b></td>
          </tr>
          {foreach name=attach_list from=$post_list.attach_list item=attach_list}
          <tr align="center" bgcolor="#DEDEDE">
            <td width="5%">
            {if $attach_list.filename|substr:-4|in_array:".gif,.jpg,.png"}
              <img src="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" width="20" height="20" border="0" align="absmiddle">
            {/if}
            </td>
            <td width="95%" align="left">
              <table width="100%" height="25" cellspacing="0" cellpadding="0" border="0" class="content_wrap"><tr><td align="left"><div id="brief_{$attach_list.id}" name="brief_{$attach_list.id}" class="smalltext"><a href="{$control_index}?act=attach&topic_id={$topic_id}&attach_id={$attach_list.id}" target="_blank">{$attach_list.brief}</a></div></td></tr></table>
            </td>
          </tr>
          {/foreach}
        </table>
        </td>
      </tr>
      {/if}
      <tr><td height="6" align="left"></td></tr>
      {if $post_list.post_modify_mid != "0"}
      <tr>
        <td height="30" align="right" bgcolor="#ECF2FB">本帖由 {$post_list.post_modify_musername} 在 {$post_list.post_modify_time|date_format:'%Y-%m-%d %H:%M:%S'} 编辑 ...</td>
      </tr>
      {/if}
      {/if}
      {if $post_list.mg_privilege.if_forbidsign == "1"}
      <tr>
        <td height="30" align="center" class="block_salient">签名被屏蔽...</td>
      </tr>
      {elseif $post_list.md_sign != ""}
      <tr>
        <td align="left"><img src="{$dir_images}/sign.gif" alt="/_________________________________________________________" title="会员签名" border="0" align="absmiddle" /></td>
      </tr>
      <tr>
        <td align="left">
          <div style="width:100%;height:{$config.max_member_sign_height}px;" class="member_sign"><table cellpadding="0" cellspacing="0" border="0" style="width:100%" class="member_sign"><tr><td>{$post_list.md_sign|str_entag:"space,br"|parse_bwbbcode}</td></tr></table></div>
        </td>
      </tr>
      {/if}
    </table>
    </td>
  </tr>
  <tr class="block_footer">
    <td width="20%" align="center">&nbsp;</td>
    <td width="80%">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
      <tr>
        <td align="left">
          {if ( ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "") )
              || ( ($post_list.post_post_mid == $member.id) && ($member.mg_privilege.if_forbidpost != "1") )}
            {if $member.mg_privilege.if_editpost == "1"}
            <input type="button" value="编辑" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_edit.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=edit&ope=edit&topic_id={$topic_id}&post_id={$post_list.post_id}'">
            {/if}
            {if $member.mg_privilege.if_delpost == "1"}
            <input type="button" value="删除" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_delete.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=edit&ope=del&topic_id={$topic_id}&post_id={$post_list.post_id}'">
            {/if}
          {/if}
        </td>
        <td align="right">
          <input type="button" value="引用" class="button_transparent" style="padding-left:15px;background-image:url({$dir_images}/icon_quote.gif);background-position:0px 2px;" onclick="self.location.href='index.php?act=reply&ope=quote&topic_id={$topic_id}&post_id={$post_list.post_id}'">
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
{/if}
{/foreach}
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
  <tr>
    <td align="left">
    {if $pagination.page_total > 1}
      <span class="pagination_post_list">
        <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
        <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
        {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
        {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
        {foreach name=page_list from=$pagination.page_list item=page_list}
          {if $page_list.if_current == "1"}
            <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
          {else}
            <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
          {/if}
        {/foreach}
        {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
        {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
        <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
        {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
        {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
        {foreach name=page_select from=$pagination.page_select item=page_select}
          {if $page_select.if_current == "1"}
            <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
          {else}
            <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
          {/if}
        {/foreach}
        {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
        {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
        </select>
      </span>
    {/if}
    </td>
    <td align="right">
      {if $channel_info.if_lock != "1" || ($admin.ag_privilege.channel_lockpost == "1" || ($admin.ag_privilege.channel_lockpost == "3" && $channel_top.channel_manage_admin_id != "")) }
      <a href="index.php?act=post&channel_id={$topic_info.channel_id}" target="_self"><img src="{$dir_images}/post_topic.gif" border="0"></a>
      {/if}
      {if $topic_info.if_close!=1 && ($topic_info.if_close!=3 || $topic_info.if_close_begin > $smarty.now || $topic_info.if_close_end < $smarty.now)}<a href="index.php?act=reply&topic_id={$topic_info.id}" target="_self"><img src="{$dir_images}/post_reply.gif" border="0"></a>{/if}
    </td>
  </tr>
</table>
{if ($admin.ag_privilege.topic == "1") || ($admin.ag_privilege.topic == "3" && $channel_top.channel_manage_admin_id != "")}
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr class="block_footer">
    <td>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
      <tr>
        <td align="right">
          <input type="button" value="主题精华" id="topic_del_button" name="topic_del_button" class="button" onclick="self.location.href='index.php?act=topic&ope=elite&topic_id={$topic_id}&post_id={$get.post_id}&#pid_{$get.post_id}'">
          <input type="button" value="主题置顶" id="topic_del_button" name="topic_del_button" class="button" onclick="self.location.href='index.php?act=topic&ope=top&topic_id={$topic_id}&post_id={$get.post_id}&#pid_{$get.post_id}'">
          <input type="button" value="主题锁定" id="topic_del_button" name="topic_del_button" class="button" onclick="self.location.href='index.php?act=topic&ope=close&topic_id={$topic_id}&post_id={$get.post_id}&#pid_{$get.post_id}'">
          <input type="button" value="主题移动" id="topic_move_button" name="topic_move_button" class="button" onclick="self.location.href='index.php?act=topic&ope=move&topic_id={$topic_id}&post_id={$get.post_id}&#pid_{$get.post_id}'">
          <input type="button" value="主题删除" id="topic_del_button" name="topic_del_button" class="button" onclick="self.location.href='index.php?act=topic&ope=del&topic_id={$topic_id}&post_id={$get.post_id}&#pid_{$get.post_id}'">
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
{/if}
{if $member.iflogin == "1" && ($topic_info.if_close!=1 && ($topic_info.if_close!=3 || $topic_info.if_close_begin > $smarty.now || $topic_info.if_close_end < $smarty.now))}
<form id="form_post" name="form_post" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">快速回复主题:</td>
  </tr>
  <tr>
    <td width="20%" class="block_left">帖子内容:</td>
    <td width="80%" class="block_right">
      {assign var="content_value" value=""}
      {assign var="content_rows" value="10"}
      {assign var="content_cols" value="100"}
      {include file="pub_content_editor.htm"}
      {if $channel_info.if_face == "1"}<input type="hidden" id="if_face" name="if_face" value="1">{/if}
      {if $channel_info.if_bbcode == "1"}<input type="hidden" id="if_bbcode" name="if_bbcode" value="1">{/if}
      {if $channel_info.if_url == "1"}<input type="hidden" id="if_url" name="if_url" value="1">{/if}
      {if $channel_info.if_html == "1"}<input type="hidden" id="if_html" name="if_html" value="1">{/if}
      <span id="content_return"><span class="prompt_primal"></span></span>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="block_footer">
        <input type="button" id="button_submit" name="button_submit" value="回复帖子" class="button"
        onclick="xajax.$('button_submit').disabled=true;
                 xajax.$('button_submit').value='请等待...';
                 xajax_submit_reply(xajax.getFormValues('form_post'), 'button_submit');">
    </td>
  </tr>
</table>
</form>
{/if}
{/if}
</div>

{include file="pub_footer.htm"}
